package org.auf.controllers;

import java.io.IOException;

import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.auf.core.Controller;

public class UnloginController extends Controller {
	
	static Logger log = Logger.getLogger(UnloginController.class.getName()); 

	@Override
	public void show() {
		HttpSession session = request.getSession();
		
		if (session == null) session.invalidate();
		
		try {
			response.sendRedirect(BaseURLs.SHOW_LOGIN);
		} catch (IOException e) {
			log.error("Error al redigirigir a la pagina principal");
		}
	}

}
